home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / gfx / pbm / update1.lzh / ilbmtoppm.diff < prev    next >
Text File  |  1992-04-24  |  819b  |  22 lines

  1. *** ilbmtoppm.c.old    Wed Dec 11 01:55:38 1991
  2. --- ilbmtoppm.c    Fri Apr 24 19:57:37 1992
  3. ***************
  4. *** 103,108 ****
  5. --- 103,118 ----
  6.                   pm_error( "EOF / read error" );
  7.               xAsp = get_byte( ifp );
  8.               yAsp = get_byte( ifp );
  9. +             if ( xAsp == 0  )
  10. +                 {
  11. +                 pm_message("warning - xAspect = 0, setting to 1");
  12. +                 xAsp =  1;
  13. +                 }
  14. +             if ( yAsp == 0 )
  15. +                 {
  16. +                 pm_message("warning - yAspect = 0, setting to xAspect (%d)", xAsp);
  17. +                 yAsp = xAsp;
  18. +                 }
  19.               if ( pm_readbigshort( ifp, &junk ) == -1 )  /* pageWidth */
  20.                   pm_error( "EOF / read error" );
  21.               if ( pm_readbigshort( ifp, &junk ) == -1 )  /* pageHeight */
  22.